package top.jacktgq.itheima.netty.protocol_design.groupchat.message;

import io.netty.channel.ChannelHandlerContext;
import lombok.Data;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;

@Data
@ToString(callSuper = true)
@Slf4j
public class GroupJoinResponseMessage extends AbstractResponseMessage {
    public GroupJoinResponseMessage() {

    }

    public GroupJoinResponseMessage(boolean success, String reason) {
        super(success, reason);
    }

    @Override
    public int getMessageType() {
        return GroupJoinResponseMessage;
    }

    @Override
    public void handle(ChannelHandlerContext ctx) {
        log.debug(getReason());
    }
}
